CC = gcc
CFLAGS = -c -g -Wall
LDFLAGS = 
SOURCES = minotify.c commons.c log_util.c
OBJECTS = $(SOURCES:.c=.o)
EXECUTABLE = minotify

all: $(EXECUTABLE)

# link the main app
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

# compile all .c to .o
.c.o:
	$(CC) $(CFLAGS) $< -o $@

install:
	@echo "target install: TBD"

dist:
	@echo "target dist: TBD"

clean:
	rm -rf *.o $(EXECUTABLE)
